package com.qf.mapper;

import com.qf.entity.Leave;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;


public interface LeaveMapper extends Mapper<Leave> {

    //查询请假信息
    Leave findInfo(@Param("taskId") Integer taskId,@Param("eventId") Integer eventId);


    //@Insert("insert into `leave`(real_name,dept_id,start_leave,end_leave,day_leave,type_leave,cause_leave,user_id,audit_status,task_id ) values(#{realName},#{deptId},#{startLeave},#{endLeave},#{dayLeave},#{typeLeave},#{causeLeave},#{userId},#{auditStatus},#{taskId})")
    Integer insertSelectives(Leave leave);
}
